package com.yjd.comm.spread.enums;


/**
 * @author SongJian
 * 人人推广奖励状态 
 */
public enum SpreadRewardStatus {
	WAIT_RECEIVE(0, "待领取"),
	RECEIVED(1, "已领取"),
	INVALID(-1, "已作废");
	private int status;
	private String description;

	private SpreadRewardStatus(int status, String description) {
		this.status = status;
		this.description = description;
	}
	public int getStatus() {
		return status;
	}

	public String getDescription() {
		return description;
	}

	public static SpreadRewardStatus getSmsStatus(int status) {
		for (SpreadRewardStatus smsStatusEnum : SpreadRewardStatus.values()) {
			if (smsStatusEnum.getStatus()==status) {
				return smsStatusEnum;
			}
		}
		return null;
	}
}
